package com.offices.subscribe.dto.message;

import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
import lombok.Data;

import java.util.Map;

@Data
public class ImageMessage extends BaseMessage {

    @JacksonXmlElementWrapper(localName = "Image")
    @JacksonXmlProperty(localName = "MediaId")
    private String mediaId;

    /**
     * @method  ImageMessage
     * @description 描述一下方法的作用
     * @date : 2020/5/3 14:51
     * @author :
     * @param request
     * @param mediaId 微信上传的素材id
     * @return com.offices.subscribe.dto.message.ImageMessage#ImageMessage
     */
    public ImageMessage(Map<String, String> request,String mediaId) {
        super(request);
        this.setMsgType("image");
        this.mediaId = mediaId;
    }
}
